package service

import (
	"github.com/gin-gonic/gin"
)

// TestGet get
func TestGet(ctx *gin.Context) (gin.H, error) {
	return gin.H{"code": 200, "message": "success!"}, nil
}

type TestPostRequest struct {
	Name string `json:"name" binding:"required"`
	Test string `json:"test" binding:"required"`
}

// TestPost post
func TestPost(ctx *gin.Context, req TestPostRequest) (any, error) {
	return gin.H{"code": 200, "message": "success!", "data": req}, nil
}
